<?php
namespace app\common\model;

use think\Model;

class Version extends Model
{

    public function getLastNormalVersionByAppType($appType=''){
        $data = [
            'status'=>1,
            'app_type'=>$appType,
        ];

        $order=[
            'id'=>'desc',
        ];

        return $this->where($data)
            ->order($order)
            ->limit(1)
            ->find();
    }


}
